package com.wuchao.spring.iocPlus;

import com.wuchao.spring.ioc.function.F;
import com.wuchao.spring.iocPlus.construct.Dao;
import com.wuchao.spring.iocPlus.p.P;
import com.wuchao.spring.iocPlus.types.Types;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author wuchao66
 * @Date 2022/9/27 14:39
 * @PackageName:com.wuchao.spring.iocPlus
 * @ClassName: T
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cpxc =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        //拆箱
        //((Dao)cpxc.getBean("Dao")).show();
       /* ((P)cpxc.getBean("P")).show();*/
        ((Types)cpxc.getBean("Types")).show();
    }
}